package com.xiaopeng.system.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum SystemOperationLogTypeEnum {

    // 角色
    ROLE_SAVE(OperationLogModuleEnum.ROLE.getModuleCode(), "role_save" , "角色新增"),
    ROLE_UPDATE(OperationLogModuleEnum.ROLE.getModuleCode(), "role_save" , "角色修改"),

    // 权限
    PERMISSION_SAVE(OperationLogModuleEnum.PERMISSION.getModuleCode(), "permission_save" , "权限新增"),
    PERMISSION_UPDATE(OperationLogModuleEnum.PERMISSION.getModuleCode(), "permission_update" , "权限修改"),

    ;

    /**
     * 日志模块code
     */
    private String moduleCode;

    /**
     * 日志类型code
     */
    private String  typeCode;

    /**
     * 日志类型name
     */
    private String  typeName;


}
